#include "StaticJavaLib.h"
#include "gc.h"
struct NewIDFoo{
};

struct NewID{
};

void main(int argc,char** argv){
  struct NewIDFoo* f;
  gc_add_root_node(&f);
  struct NewIDFoo** g;
  gc_add_root_node(&g);
  struct NewIDFoo** h;
  gc_add_root_node(&h);
  f = (struct NewIDFoo*)gc_malloc(sizeof(struct NewIDFoo));
  g = (struct NewIDFoo**)gc_malloc(sizeof(struct NewIDFoo*)*4);
  h = (struct NewIDFoo**)gc_malloc(sizeof(struct NewIDFoo*)*2);
  *(h+0) = f;
  *(h+1) = g[0];
  gc_free_root_node(&f);
  gc_free_root_node(&g);
  gc_free_root_node(&h);
  gc_recycle();
}
